how to check whether a given schedule is consistent or not